<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/include/global.jsp"%>
<%@ page import="net.sxnic.ugr.menu.Menu" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--框架必需start-->
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/style/qui/js/framework.js"></script>

<link href="${pageContext.request.contextPath}/style/qui/css/import_basic.css" rel="stylesheet" type="text/css"/>
<link href="${pageContext.request.contextPath}/style/qui/skins/${appContext_cssStyle}/style.css" rel="stylesheet" type="text/css"/>

<script type="text/javascript" src="${pageContext.request.contextPath}/style/qui/js/bsFormat.js"></script>
<!--框架必需end-->

<!--修正IE6支持透明png图片start-->
<script type="text/javascript" src="${pageContext.request.contextPath}/style/qui/js/method/pngFix/supersleight.js"></script>

<script type="text/javascript" src="${pageContext.request.contextPath}/style/qui/js/nav/ddaccordion.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/style/qui/js/text/text-overflow.js"></script>
<style>
a {
	behavior:url(${pageContext.request.contextPath}/style/qui/js/method/focus.htc)
}
.categoryitems span{
	width:160px;
}
</style>

<script>
	//打开内页时出现进度条
	$(function(){
		$(".categoryitems a[target*=frmright]").click(function(){
			showProgressBar();
		})
	})
</script>
</head>
<body leftFrame="true">
<div id="scrollContent">
<div class="arrowlistmenu">

<%
	List<Menu> menuList = (List<Menu>)request.getAttribute("menuList");
	Map<String, List<Menu>> secodeMenuMap = (Map<String, List<Menu>>)request.getAttribute("secodeMenuMap");
	Map<String, String> userMenuMap = (Map<String, String>)request.getAttribute("userMenuMap");
	StringBuilder sb = new StringBuilder();
	for(Menu menu:menuList){		
			//if(userMenuMap.containsKey(menu.getCode())){
				sb.append("<div class=\"menuheader expandable\"><span class=\"normal_icon1\"></span>"+menu.getValue()+"</div>");
				sb.append("<ul class=\"categoryitems\">");
				List<Menu> secodeMenuList = secodeMenuMap.get(menu.getCode());
				for(Menu menu2:secodeMenuList){
					if(userMenuMap.containsKey(menu2.getCode())){	
						sb.append("<li><a href=\""+request.getContextPath()+menu2.getUrl()+".jspa?menuCode="+menu2.getCode()+"\"  target=\"frmright\" ><span class=\"text_slice\">"+menu2.getValue()+"</span></a></li>");
					}				
				}
				
				sb.append("</ul>");
			//}
	}
	out.println(sb.toString());
%>

</div>
</div>
			
</body>
</html>